# -*- coding: utf-8 -*-
# @Time : 2021/5/27 8:38 
# @Author : for 
# @File : urls.py 
# @Motto: good good study,day day up

from django.urls import path
from apps.user.views import RegisterView, ActiveView, LoginView, UserInfoView, UserOrderView, AdressView,LogoutView
from django.contrib.auth.decorators import login_required

app_name = 'user'

urlpatterns = [
    path('register', RegisterView.as_view(), name='register'),
    path('active/<str:token>', ActiveView.as_view(), name='active'),
    path('login', LoginView.as_view(), name='login'),
    path('logout', LogoutView.as_view(), name='logout'),

    # path('', login_required(UserInfoView.as_view()), name='user'),
    # path('order', login_required(UserOrderView.as_view()), name='order'),
    # path('address', login_required(AdressView.as_view()), name='address'),

    path('', UserInfoView.as_view(), name='user'),
    path('order', UserOrderView.as_view(), name='order'),
    path('address', AdressView.as_view(), name='address'),

]
